<?php
class RandomPsy extends CWidget {

	public function init() {
		
	}
	
	public function run() {
		$this->renderContent();
	}
	
	public function renderContent() {
		$psychologist = Psychologists::model()->random();
		
		$this->render('view-psy', array(
				'psychologist' => $psychologist 
			)
		);
	}
}